import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入axios
import axios from 'axios'
// 引入lib-flexible,进行大屏自适应
import 'lib-flexible'
// 引入重构的css 将样式统一
import '../public/css/reset.css'
// // 引入图标
// import './assets/style/iconfont.css'
// 引入vue-awsome-swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 引入轮播的样式
import 'swiper/dist/css/swiper.css'
// 引入iconfont 的图标
import './assets/style/iconfont/iconfont.css'

Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')

router.afterEach((to, from, next) => {
    window.scrollTo(0, 0)
});